package com.huazi.www.yang.fchua.entity;

/**
 * 药订单类
 */
public class Medicine {

    private Integer id;        //订单编号  1
    private Integer userId;    //用户id    2
    private String userName;   //用户姓名  3

    private Integer count;     //药品数量【新增】  4

    private String medicineName;  //药名

    private Double price;         //价格

    private Integer sum;//数量

    private String time;//开药时间   5

    private String doctorName;//医生姓名   6

    private String type;//医嘱

    private String state;//状态

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMedicineName() {
        return medicineName;
    }

    public void setMedicineName(String medicineName) {
        this.medicineName = medicineName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }


    public Medicine() {

    }

    /**
     * 查询详情
     *
     * @param id           订单编号
     * @param medicineName 药品名称
     * @param price        药品价格
     * @param sum          药品数量
     * @param type         用法用量
     */
    public Medicine(Integer id, String medicineName, Double price, Integer sum, String type) {
        this.id = id;
        this.medicineName = medicineName;
        this.price = price;
        this.sum = sum;
        this.type = type;
    }

    /**
     * 查询药单
     *
     * @param id         订单编号
     * @param userId     用户编号
     * @param userName   用户姓名
     * @param count      药品数量
     * @param time       时间
     * @param doctorName 医生姓名
     */
    public Medicine(Integer id, Integer userId, String userName, Integer count, String time, String doctorName) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.count = count;
        this.time = time;
        this.doctorName = doctorName;
    }

    public Medicine(Integer id, Integer userId, String userName, String medicineName, Integer sum, String time, String doctorName, String type, String state) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.medicineName = medicineName;
        this.sum = sum;
        this.time = time;
        this.doctorName = doctorName;
        this.type = type;
        this.state = state;
    }

}
